package pe.com.grupobbva.ohc.hy30;

public class OHC_HY30_PortTypeProxy implements pe.com.grupobbva.ohc.hy30.OHC_HY30_PortType {
  private String _endpoint = null;
  private pe.com.grupobbva.ohc.hy30.OHC_HY30_PortType oHC_HY30_PortType = null;
  
  public OHC_HY30_PortTypeProxy() {
    _initOHC_HY30_PortTypeProxy();
  }
  
  public OHC_HY30_PortTypeProxy(String endpoint) {
    _endpoint = endpoint;
    _initOHC_HY30_PortTypeProxy();
  }
  
  private void _initOHC_HY30_PortTypeProxy() {
    try {
      oHC_HY30_PortType = (new pe.com.grupobbva.ohc.hy30.OHC_HY30_ServiceLocator()).getOHC_HY30_Port();
      if (oHC_HY30_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)oHC_HY30_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)oHC_HY30_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (oHC_HY30_PortType != null)
      ((javax.xml.rpc.Stub)oHC_HY30_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public pe.com.grupobbva.ohc.hy30.OHC_HY30_PortType getOHC_HY30_PortType() {
    if (oHC_HY30_PortType == null)
      _initOHC_HY30_PortTypeProxy();
    return oHC_HY30_PortType;
  }
  
  public pe.com.grupobbva.ohc.hy30.CtConOhcHY30Rs callHY30(pe.com.grupobbva.ohc.hy30.CtConOhcHY30Rq conOhcHY30Rq) throws java.rmi.RemoteException{
    if (oHC_HY30_PortType == null)
      _initOHC_HY30_PortTypeProxy();
    return oHC_HY30_PortType.callHY30(conOhcHY30Rq);
  }
  
  
}